In this tutorial we'll take a look at a simple animation using the Java capability of Community Place. What follows is an example of a cone. When we click on the cone, the cone will start rotating by itself, continuously. When we click on the cone again, the cone will stop animating. The key to realizing this lies in a special Sensor called a "TimeSensor". This is a sensor which exists independently of 3D space, and serves as a continual event generator. The timer can be adjusted to space out its events, and also to be turned on and off. Using these timer events we can implement almost any kind of animation that we need to. Here is an example screenshot of the final result:

If you are not very familiar with event-driven programming here is a refresher.

This tutorial consists of:


This tutorial written by John D. DeCuir; HTMLized by Jai Natarajan